<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 50px;
            height: 50px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <input type="text" v-model="msg"><br>
        <input type="text" :value="msg" @input="msg=$event.target.value">



        <hr>
        <div class="box" :style="`background-color:${color}`"></div>
        <input type="color" v-model="color">

        <input type="color" :value="color" @input="color=$event.target.value">

        <hr>
        <pre>{{text}}</pre>
        <textarea  cols="30" rows="10" :value="text" @input="text=$event.target.value"></textarea>
        <br>
        <textarea  cols="30" rows="10" v-model="text"></textarea>
        
    </div>
    <script type="module">
        import { createApp } from "../assets/vue3/vue.esm-browser.js";
        createApp({
            data() {
                return {
                    msg:'msg变量',
                    color:'#00ff00',
                    text:'第一行'
                    
                }
            }
        }).mount("#app");
    </script>
</body>
</html>